package com.plan.dao.mapper.card;

import com.plan.controller.card.response.TaskListVO;
import com.plan.entity.card.MyTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyTaskRepositoryMapper {

    int insert(MyTask task);

    List<TaskListVO> getList(Long cardId, Long teamId);

    MyTask getOneById(Long id);

    List<MyTask> getListByIds(@Param("taskIdList") List<Long> taskIdList);

    List<MyTask> getAfterSortTask(Long cardId, Integer sort);

    void updateSort(Long id, Integer sort);

    void delete(Long id);

    Integer getMaxSort(Long cardId);
}
